package com.tensquare.article.pojo;
/*
 *ClassName:Comment
 *Description:文章评论
 *@author:可爱的大鸭子
 */

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name="tb_comment")
public class Comment implements Serializable {
    @Id
    private String id;          //ID

    private String aid;         //文章id
    private String fromuid;     //发送者
    private String touid;       //接受者
    private String content;     //评论内容
    private Date publishtime;    //评论时间
    private String commentid;   //父评论的id，没有为0
    private Integer comment;    //评论数
    private Integer thumbup;    //点赞数

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAid() {
        return aid;
    }

    public void setAid(String aid) {
        this.aid = aid;
    }

    public String getFromuid() {
        return fromuid;
    }

    public void setFromuid(String fromuid) {
        this.fromuid = fromuid;
    }

    public String getTouid() {
        return touid;
    }

    public void setTouid(String touid) {
        this.touid = touid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getPublishtime() {
        return publishtime;
    }

    public void setPublishtime(Date publictime) {
        this.publishtime = publictime;
    }

    public String getCommentid() {
        return commentid;
    }

    public void setCommentid(String commentid) {
        this.commentid = commentid;
    }

    public Integer getComment() {
        return comment;
    }

    public void setComment(Integer comment) {
        this.comment = comment;
    }

    public Integer getThumbup() {
        return thumbup;
    }

    public void setThumbup(Integer thumbup) {
        this.thumbup = thumbup;
    }
}
